package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 沥青拌合站筛孔数据业务对象 n_cement1_alarm
 *
 * @author zyb
 * @date 2023-09-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NCement1AlarmBo extends BaseEntity {

    /**
     * 数据主键
     */
    @NotBlank(message = "数据主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 集料1占比预警
     */
    @NotNull(message = "集料1占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gravel1;

    /**
     * 集料2占比预警
     */
    @NotNull(message = "集料2占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gravel2;

    /**
     * 集料3占比预警
     */
    @NotNull(message = "集料3占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gravel3;

    /**
     * 集料4占比预警
     */
    @NotNull(message = "集料4占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gravel4;

    /**
     * 集料5占比预警
     */
    @NotNull(message = "集料5占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gravel5;

    /**
     * 集料6占比预警
     */
    @NotNull(message = "集料6占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gravel6;

    /**
     * 水泥1占比预警
     */
    @NotNull(message = "水泥1占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long powder1;

    /**
     * 水泥2占比预警
     */
    @NotNull(message = "水泥2占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long powder2;

    /**
     * 水占比预警
     */
    @NotNull(message = "水占比预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long water;

    /**
     * 预警
     */
    @NotNull(message = "预警不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long alarm;

    /**
     * 预警详情
     */
    @NotBlank(message = "预警详情不能为空", groups = { AddGroup.class, EditGroup.class })
    private String details;

    /**
     * 状态，0未处理，1已处理
     */
    @NotNull(message = "状态，0未处理，1已处理不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long state;

    /**
     * 问题原因
     */
    @NotBlank(message = "问题原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alarmReason;

    /**
     * 处理方案
     */
    @NotBlank(message = "处理方案不能为空", groups = { AddGroup.class, EditGroup.class })
    private String handlerPlan;

    /**
     * 处理结果
     */
    @NotBlank(message = "处理结果不能为空", groups = { AddGroup.class, EditGroup.class })
    private String handlerResult;

    /**
     * 处理时间
     */
    @NotNull(message = "处理时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date handlerTime;

    /**
     * 处理人
     */
    @NotBlank(message = "处理人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String handlerPerson;


}
